package ru.simplemaps.osmapi.objects;

import java.util.ArrayList;
import java.util.List;

/**
 * @author enaku_adm
 * @since 22.07.2010 11:11:48
 */
public class Relation extends AbstractOSMElement {
    public Relation(long id) {
        super(id, OSMElementType.relation);
    }

    public final List<Member> members = new ArrayList<Member>();

    public static class Member {
        public final OSMElementType type;
        public final Long ref;
        public final String role;

        public Member(OSMElementType type, Long ref, String role) {
            this.ref = ref;
            this.role = role;
            this.type = type;
        }
    }
}
